package com.atguigu.category.service;

import com.atguigu.param.PageParam;
import com.atguigu.param.ProductHotParam;
import com.atguigu.pojo.Category;
import com.atguigu.utils.R;

/**
 * ClassName:CategoryService
 * Package:com.atguigu.category.service
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/21 20:53
 * @Version 1.0
 */
public interface CategoryService {
    //根据类别名称查询类别对象
    R byname(String categoryName);

    R hotsCategory(ProductHotParam param);

    R list();

    R listPage(PageParam param);

    R adminSave(Category category);

    R adminRemove(Integer categoryId);

    R adminUpdate(Category category);
}
